import TodoActionTypes from './TodoActionTypes.js';
import TodoDispatcher from './TodoDispatcher.js';

const Actions = {
    addTodo: function (text) {
        TodoDispatcher.dispatch({
            type: TodoActionTypes.ADD_TODO,
            text: text
        });
    }
};

module.exports = Actions;
